import threading
from time import sleep
while True:
    try:
        s = input('>>')
    except KeyboardInterrupt:
        print("收到系统退出信号，退出服务！")
        break
    if s == "q":
        print("退出ChatBot系统服务！")
        break